import java.util.Scanner;

public class Question02 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入第一个数:");
        int a = scanner.nextInt();
        System.out.println("请输入第二个数:");
        int b = scanner.nextInt();
        System.out.println("请输入第三个数:");
        int c = scanner.nextInt();
        /*int Max = num1;
        if (num1 < num2) {
            Max = num2;
        }
        if (num2 < num3) {
            Max = num3;
        }
        int Min = num1;
        if (num1 > num2) {
            Min = num2;
        }
        if (num2 > num3) {
            Min = num3;
        }
        System.out.println("最大值:" + Max + ",最小值" + Min);
        */
        // if 的第三种形式
        // if(条件一){
        // 代码块1
        // } else if (条件二){
        // 代码块2
        // }.....
        //else{}
        if (a >= b && b >= c) {
            //a b c => 7,6,5
            //8,8,6 => a,b,c
            System.out.println(a + ',' + c);
        } else if (a >= c && c >= b) {
            System.out.println(a + ',' + b);
        } else if (b >= a && a >= c) {
            System.out.println(b + ',' + c);
        } else if (b >= c && c >= a) {
            System.out.println(b + ',' + a);
        } else if (c >= a && a >= b) {
            System.out.println(c + ',' + b);
        } else {
            System.out.println(c + ',' + a);
        }
    }
}
